

package com.hazelcast.security;

import java.security.AccessControlException;

/**
 * This interface allows to intercept requests which were produced by an API call like map.put, queue.offer...
 */
public interface SecurityInterceptor {

    /**
     * @throws AccessControlException if access is denied
     */
    void before(Credentials credentials, String objectType, String objectName, String methodName, Parameters parameters) throws AccessControlException;

    void after(Credentials credentials, String objectType, String objectName, String methodName, Parameters parameters);
}
